<?php if ($detail['infant'] > 0): ?>
    <?php for ($i = 1; $i <= $detail['infant']; $i++): ?>
        <div id="titlemerah"><p align="left">Penumpang Bayi <?php if ($infant_count > 1) echo $i ?></p></div><br />
        <table class="table " width="620" >
            <tr>
                <td>Nama</td>
                <td style="font-size:12px;">Title<br /><?php echo form_dropdown('infant[' . $i . '][title]', $title_child, '', "class='span1'") ?></td>
                <td style="font-size:12px;">Nama Depan <small style="font-size:8px; color:#bf0d31">*)Max 12 Char</small><br /><input class="namablkg" tipe="text" name="infant[<?php echo $i ?>][nama_depan]" ></td>
                <td style="font-size:12px;">Nama Belakang <small style="font-size:8px; color:#bf0d31">*)Max 12 Char</small><br /><input tipe="text" name="infant[<?php echo $i ?>][nama_belakang]"  class="namablkg"></td>
                <td style="font-size:11px;">Orangtua<br /><?php echo form_dropdown('infant[' . $i . '][orangtua]', $orangtua, '', "class='span2'") ?></td>
            </tr>
            <?php echo form_hidden('infant[' . $i . '][code]', $code, "class='span1'") ?>
            <tr>
            </tr>
            <tr>
                <td></td>
                <td colspan="4">Tanggal Lahir<br />
        <?php echo form_dropdown('infant[' . $i . '][tanggal]', $tanggal, '', "class='span1'") ?>
        <?php echo form_dropdown('infant[' . $i . '][bulan]', $bulan, '', "class='span2'") ?>
        <?php echo form_dropdown('infant[' . $i . '][tahun]', $tahun_infant, '', "class='span1'") ?><br />
        <!--                        Kebutuhan Khusus<br /><select class="span3"><option selected="selected">Tidak ada</option></select>-->
                </td>
            </tr>
        </table>
    <?php endfor ?>
    <?php
 endif ?>